package org.jiamandan.com.constant;


/**
 * TP主板
 */
public interface DXConstant {
    interface Cmd {
        String CMD_002 = "0002";     //读设备地址，序列号
        String CMD_082 = "0082";     //设置设备地址
        String CMD_004 = "0004";     //读远程服务器 IP 地址
        String CMD_084 = "0084";     //设置远程服务器 IP 地址 0084
        String CMD_008 = "0008";     //读 BS 协议通信参数
        String CMD_088 = "0088";     //设置 BS 协议通信参数
        String CMD_009 = "0009";     //读取设备工作参数
        String CMD_089 = "0089";     //设置设备工作参数

        //========== ^.^ 业务命令 ^.^ //


        String CMD_A01 = "0A01";     //打开充电通道
        String CMD_A02 = "0A02";    //关闭单个充电通道
        String CMD_A03 = "0A03";     //紧急关闭所有充电通道

        String CMD_A04 = "0A04";    //带订单号的打开通道

        String CMD_A80 = "0A80";    //刷卡结果提示
        String CMD_AC0 = "0AC0";       //查询单个充电通道状态
        String CMD_AC1 = "0AC1";       //查询所有充电通道状态

        //主动上报
        String CMD_901 = "0901";            //设备登录
        String CMD_902 = "0902";           //实时主动数据上传心跳包

        //升级指令
        String CMD_F01 = "0F01";        //升级握手命令
        String CMD_F03 = "0F03";        //写入升级程序
    }

    interface Service {
        String CMD_002 = "";     //读设备地址，序列号
        String CMD_082 = "";     //设置设备BCB 编码
        String CMD_004 = "dx004GetIpPortListenerService";     //读远程服务器 IP 地址
        String CMD_084 = "dx084SetDeviceIPPortListenerService";     //设置远程服务器 IP 地址 0084
        String CMD_008 = "dx008BSListenerService";     //读 BS 协议通信参数
        String CMD_088 = "";     //设置 BS 协议通信参数
        String CMD_009 = "dx009GetPileInfoListenerService";     //读取设备工作参数
        String CMD_089 = "dx089SetPileInfoListenerService";     //设置设备工作参数

        //========== ^.^ 业务命令 ^.^ //
        String CMD_A01 = "dxA01IssueChargeListenerService";     //打开充电通道
        String CMD_A02 = "dxA02IssueChargeStopListenerService";    //关闭单个充电通道
        String CMD_A03 = "";        //紧急关闭所有充电通道

        String CMD_A04 = "dxA04IssueChargeListenerService";        //支付宝打开充电通道

        String CMD_A80 = "dxA80PunchTheCardListenerService";        //刷卡结果提示
        String CMD_AC0 = "dxAC0QueryChargePileStatusService";       //查询单个充电通道状态
        String CMD_AC1 = "";       //查询所有充电通道状态

        //主动上报
        String CMD_901 = "dx901LoginListenerService";                   //设备登录
        String CMD_902 = "dx902DeviceHeartListenerService";           //实时主动数据上传心跳包

        //升级指令
        String CMD_F01 = "dxF01UpgradeUpgradeListener";        //升级握手命令
        String CMD_F03 = "dxF03UpgradeListener";        //写入升级程序

    }
}
